
<head>
<link href="/css/bootstrap.css" rel="stylesheet" media="screen">
</head>
<?php 
 foreach ($page as $p)
 {
    echo $p.'<br>';
 }?>
<ul class="pagination">
    <li><a href="#">&laquo;</a></li> 
         <?php 
        for($p = 1; $p <= $pages; $p++){           
            $par = ['page' => $p,'profile' =>(string) $this->getAuth()->identity()];?>
            <li><a href="<?php echo $this->url('visitors.visitors',$par)?>"><?= $p ?></a></li> 
            <?php }?>
    <li><a href="#">&raquo;</a></li>
</ul>

 